package com.jsb.laundry.config.properties;//package com.jsb.laundry.config.properties;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * OSS配置
 *
 * @author zmy
 * @create 2023-07-29 13:09
 */
@RefreshScope
@Component
public class OSSProperties {
    public static String host;
    public static String endpoint;
    public static String accessKeyId;
    public static String accessKeySecret;
    public static String bucketName;
    @Value("${aliyun.oss.host}")
    private void setHost(String host) {
        this.host = host;
    }
    @Value("${aliyun.oss.endpoint}")
    private void setEndpoint(String endpoint) {
        this.endpoint = endpoint;
    }
    @Value("${aliyun.oss.accessKeyId}")
    private void setAccessKeyId(String accessKeyId) {
        this.accessKeyId = accessKeyId;
    }
    @Value("${aliyun.oss.accessKeySecret}")
    private void setAccessKeySecret(String accessKeySecret) {
        this.accessKeySecret = accessKeySecret;
    }
    @Value("${aliyun.oss.bucketName}")
    private void setBucketName(String bucketName) {
        this.bucketName = bucketName;
    }
}
